import {request} from '@/utils/request'

// 表单查询 参数 code name start pageSize
//"info": [{
//          "id": "int,表单类id",
//          "code": "string,编码",
//          "name": "string,表单名称",
//          "state": "boolean,是否可用",
//          "note": "string,备注说明",
//          "ord": "int,序号"
//      }],
export function repClassquery(param) {  
  return request({
    url: '/repClass/query',
    method: 'post',    
    data: param
  })
}

// 保存 id name code state note ord
export function repClasssave(param) {
  return request({
    url: '/repClass/save',
    method: 'post',
    data: param
  })
}

//表单类-详情 参数 id
export function repClassdetail(param) {
  return request({
    url: '/repClass/detail',
    method: 'post',
    data: param
  })
}

//表单类-删除 参数 id
export function repClassdelete(param) {
  return request({
    url: '/repClass/delete',
    method: 'post',
    data: param
  })
}

//表单-详情（类id 参数 classId
export function getRep(param) {
  return request({
    url: '/report/getRep',
    method: 'post',
    data: param
  })
}
//表单-详情（类id 参数 classId
export function getRepId(param) {
  return request({
    url: '/report/getRepId',
    method: 'post',
    data: param
  })
}

//表单-列表（类id 参数 code name start pageSize classId
export function reportquery(param) {
  return request({
    url: '/report/query',
    method: 'post',
    data: param
  })
}

//表单-保存（类id 参数 id name code state note ord classId version table field wf var content mobileContent
export function reportsave(param) {
  return request({
    url: '/report/save',  
    method: 'post',
    data: param,
    type: 2
  })
}

//表单-详情（类id 参数 id 
export function reportdetail(param) {
  return request({
    url: '/report/detail',
    method: 'post',
    data: param
  })
}

//表单-删除（类id 参数 id 
export function reportdelete(param) {
  return request({
    url: '/report/delete',
    method: 'post',
    data: param
  })
}

//表结构-列表  limit  start
export function tableList(param) {
  return request({
    url: '/table/list',
    method: 'post',
    data: param
  })
}

//表结构-列表  limit  start
export function listColumns(param) {
  return request({
    url: '/table/listColumns',
    method: 'post',
    data: param
  })
}